from django.db import models

# Create your models here.
class Event(models.Model):
    name=models.CharField(max_length=100)
    limit=models.IntegerField()
    startus=models.BooleanField()
    address=models.CharField(max_length=100)
    start_time=models.DateTimeField(auto_now=True)
    creat_time=models.DateTimeField(auto_now=True)

class Guest(models.Model):
    event=models.ForeignKey(to='Event',on_delete=models.CASCADE)
    relaname=models.CharField(max_length=100)
    phone=models.CharField(max_length=100)
    email=models.EmailField()
    sing=models.BooleanField()
    creat_time=models.DateTimeField(auto_now=True)
